package com.wish.wishhouse_resource.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商户表
 * </p>
 *
 * @author wsx
 * @since 2021-04-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_business")
public class TbBusiness implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("corporation")
    private String corporation;

    @TableField("province")
    private Integer province;

    @TableField("city")
    private Integer city;

    @TableField("county")
    private Integer county;

    @TableField("address")
    private String address;

    /**
     * 1 个人职业房东 2 公司化公寓
     */
    @TableField("type")
    private Integer type;

    @TableField("status")
    private Integer status;

    @TableField("user_id")
    private Integer userId;

    @TableField("create_time")
    private Date createTime;

    @TableField("reserve1")
    private Integer reserve1;

    @TableField("reserve2")
    private Integer reserve2;

    @TableField("reserve3")
    private String reserve3;

    @TableField("reserve4")
    private String reserve4;

    @TableField("reserve5")
    private String reserve5;

    /**
     * 营业执照
     */
    @TableField("url")
    private String url;

    /**
     * 统一信征码
     */
    @TableField("zheng")
    private String zheng;

    /**
     * 头像
     */
    @TableField("head_picture")
    private String headPicture;

    @TableField("legal_person_name")
    private String legalPersonName;

    /**
     * 身份证号
     */
    @TableField("cert_num")
    private String certNum;

    /**
     * 身份证正面
     */
    @TableField("cert_picture")
    private String certPicture;

    /**
     * 身份证反面
     */
    @TableField("cert_picture2")
    private String certPicture2;

    /**
     * 手持身份证
     */
    @TableField("cert_picture3")
    private String certPicture3;

    /**
     * 品牌名
     */
    @TableField("brand_name")
    private String brandName;

    /**
     * 公寓网址
     */
    @TableField("apartment_url")
    private String apartmentUrl;

    /**
     * 客服热线
     */
    @TableField("service_hotline")
    private String serviceHotline;

    @TableField(exist = false)
    private String statusName;
    @TableField(exist = false)
    private String typeName;
    @TableField(exist = false)
    private String createTimes;
    @TableField(exist = false)
    private String provinceName;
    @TableField(exist = false)
    private String cityName;
    @TableField(exist = false)
    private String countyName;
}
